package com.huanwang.homelibrary

import android.util.Log
import com.huanwang.commonlibrary.base.BaseModuleRepository
import com.huanwang.commonlibrary.networkframework.consumer.OnResponseListenImpl
import com.google.gson.JsonObject

class MMoudle : BaseModuleRepository() {
     init {
         Log.d("TAGTAG","-dd开始---")
         addSubscription(flowable.getHomeHealthList(),object : OnResponseListenImpl<JsonObject>() {
             override fun onNoxt(accept: JsonObject) {
                 Log.d("TAGTAG","-dd---${accept}")
             }

             override fun onError(mag: String?) {
                 Log.d("TAGTAG","-dd---$mag")
             }

             override fun onComplete() {
                 Log.d("TAGTAG","-dd结束---")
             }
         })
     }
}